package com.doform.android.xianggucheng.bean.request_bean;

import com.google.gson.Gson;

/**
 * 作者 Y_MS
 * Created by ${APEN} on 2017-08-03.
 * GitHub：https://github.com/cxydxpx
 */

public class ReqAddVendorBean {

    private String _savetype = "add";
    private String state = "1";//状态{1:已合作,2:正在洽谈,3:未合作,0:禁用,-9:删除}
    private String name;
    private String lnkname;
    private String mobile;
    private String clsids;
    private String clsnames;
    private String addr;
    private String a1name;
    private String area1;
    private String a2name;
    private String area2;
    private String a3name;
    private String area3;
    private String fapostcard;

    public ReqAddVendorBean(String mName, String mPerson, String mPhone, String mCategoryId, String mCategoryName,
                            String mDetailAddress, String mProvinceName, String mProvinceId,
                            String mCityName, String mCityId, String mZoneName, String mZoneId,
                            String imgId,String imgfile) {
        this.name = mName;
        this.lnkname = mPerson;
        this.mobile = mPhone;
        this.clsids = mCategoryId;
        this.clsnames = mCategoryName;
        this.addr = mDetailAddress;
        this.a1name = mProvinceName;
        this.area1 = mProvinceId;
        this.a2name = mCityName;
        this.area2 = mCityId;
        this.a3name = mZoneName;
        this.area3 = mZoneId;
        this.fapostcard = imgId;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
